home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / bash_completion.d / apache2ctl < prev    next >
Text File  |  2009-04-02  |  394b  |  19 lines

  1. # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
  2. # ex: ts=8 sw=8 noet filetype=sh
  3. #
  4. # apache2ctl(1) completion
  5. #
  6. have apache2ctl && {
  7. _apache2ctl() {
  8.     local APWORDS
  9.     
  10.     COMPREPLY=()
  11.     cur=`_get_cword`
  12.     
  13.     APWORDS=$(apache2ctl 2>&1 >/dev/null | head -n1 | cut -f3 -d" " | tr "|" " ")
  14.     
  15.     COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) )
  16. }
  17. complete -F _apache2ctl apache2ctl
  18. }
  19.